import Message from "./Message";

export default class SendMessage extends Message {

    protected isBlock:boolean = true; // 是否显示屏蔽层。

    protected sendCount:number = 0;// 发送次数，超过几次后不再重发。
    private _method: string;
    private _validate: boolean;

    getMethod(){
        return this._method;
    }
    setMethod(method){
        this._method = method;
    }

    getValidate(){
        return this._validate;
    }
    setValidate(validate){
        this._validate = validate;
    } 
    setBlock(flag){
        this.isBlock = flag;
    }

    getBlock(){
        return this.isBlock;
    }

    updateCount(){
        this.sendCount ++;
    }

    getSendCount(){
        return this.sendCount;
    }
}
